package com.example.library.model;

import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: asus
 * Date: 2024-12-20
 * Time: 17:30
 */
@Data
public class PageResult<T> {
    /**
     * 当前页的记录和总记录数
     */
    private List<T> bookInfos;
    private Integer total;
    private PageRequest pageRequest;
    public PageResult(List<T> bookInfos, Integer total, PageRequest pageRequest) {
        this.bookInfos = bookInfos;
        this.total = total;
        this.pageRequest = pageRequest;
    }
}
